package org.beetl.sql.experimental.iohao.mapper;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.mapper.MapperJavaProxy;

import java.lang.reflect.Method;

/**
 * <BR>
 * create time : 2017-04-14 18:48
 *
 * @author luoyizhu@gmail.com
 */
class BeetlMapperInterceptor extends MapperJavaProxy implements MethodInterceptor {
    public BeetlMapperInterceptor(SQLManager sqlManager, Class<?> mapperInterface, FastMapperBuilder builder) {
        super(builder, sqlManager, mapperInterface);
    }

    @Override
    public Object intercept(Object target, Method method, Object[] args, MethodProxy proxy) throws Throwable {
        return super.invoke(target, method, args);
    }
}
